package com.xuxin.nantai.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.blankj.utilcode.util.BarUtils;

/**
 * Created by xu_xin
 * Created on 2020.06.05
 */
public class StatusBar extends View {

    public StatusBar(Context context) {
        super(context);
    }

    public StatusBar(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public StatusBar(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
        setMeasuredDimension(widthMeasureSpec, BarUtils.getStatusBarHeight());
    }
}